package com.ruoyi.standingbook.cleaning.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.standingbook.cleaning.domain.bo.CleaningBo;
import com.ruoyi.standingbook.cleaning.domain.vo.CleaningImportDetailVo;
import com.ruoyi.standingbook.cleaning.domain.vo.CleaningPicVo;
import com.ruoyi.standingbook.cleaning.domain.vo.CleaningVo;

import java.util.Collection;
import java.util.List;

/**
 * 清扫保洁Service接口
 *
 * @author cc
 * @date 2023-04-26
 */
public interface ICleaningService {

    /**
     * 查询清扫保洁
     */
    CleaningVo queryById(Long id);

    /**
     * 查询清扫保洁列表
     */
    TableDataInfo<CleaningVo> queryPageList(CleaningBo bo, PageQuery pageQuery);

    /**
     * 查询清扫保洁列表
     */
    List<CleaningVo> queryList(CleaningBo bo);

    /**
     * 新增清扫保洁
     */
    Boolean insertByBo(CleaningBo bo);

    /**
     * 修改清扫保洁
     */
    Boolean updateByBo(CleaningBo bo);

    /**
     * 校验并批量删除清扫保洁信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean batchInsert(List<CleaningImportDetailVo> voList);

    List<CleaningPicVo> getAfterPicByDate(String date);

    List<CleaningPicVo> getBeforePicByDate(String date);

    Double getSumByDate(String date);

    Double getSumByDateAndCommunity(String date,String community);

    List<CleaningVo> queryListByDate(String date,String community);

}
